const exec = require('./exec')
const time = require('./time')
const timeLine = time.formatTime(new Date(), 'yyyyMMddhhmmss')
const gitTag = `git tag -a pre.${timeLine} -m ${timeLine}`
const gitTagPush = `git push origin pre.${timeLine}`

const excePre = async () => {
  const pre = await exec.execute(`${gitTag}`)
  console.log('tag:pre --> ', `${gitTag}`)
  const push = await exec.execute(`${gitTagPush}`)
  console.log('tag:push --> ', `${gitTagPush}`)
}

excePre()
